package com.itheima.systemdemo;

import java.util.concurrent.CopyOnWriteArrayList;

public class SystemDemo3  {
    public static void main(String[] args) {
        int[] arr1={1,2,3,4,5,6,7,8,9,10};
        int[] arr2=new int[10];
        System.arraycopy(arr1,6,arr2,2,3);
        // 0 0 0 0 1 2 3 0 0 0
        // 0 0 7 8 9 0 0 0 0 0
        //输出打印
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i]+" ");
        }
    }
}
